home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
etc
/
profile.z
/
profile
Wrap
Text File
|
1992-04-03
|
794b
|
41 lines
#
# /etc/profile - Default settings for all sh users
#
# This script is executed before $HOME/.profile when an sh user logs in
# or invokes /bin/su with the `-' option.
#
# Ignore keyboard interrupts.
trap "" 2 3
# Set the umask so that newly created files and directories will be readable
# by others, but writable only by the user.
umask 022
case "$0" in
*su )
# Special processing for ``su -'' could go here.
;;
-* )
# This is a first time login. Notify the user if the account's
# password will expire within the next week.
showpwage
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
cat -s /etc/motd
trap "" 2
# Print lastlog message
/bin/showlastlogin
# Check for mail.
if /bin/mail -e
then
echo "you have mail"
fi
;;
esac
trap 2 3